using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Responses.Objects;
using JoyfulHomeJourney.BackEnd.Infrastructure.Tools;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Responses
{
	public static class ShippingCompaniesExtend
{
		public static ResponseShippingCompaniesDto ToResponseDto(this ShippingCompanies entity)
{			return new ResponseShippingCompaniesDto
			{
				createAt = entity.ScCreateAt,
				createAtStr =Tools.TimeToString(entity.ScCreateAt),
				id = entity.ScId,
				name = entity.ScName,
				phone = entity.ScPhone,
				updateAt = entity.ScUpdateAt,
				updateAtStr =Tools.TimeToString(entity.ScUpdateAt),
				website = entity.ScWebsite,
			};
		}
	}
}
